package com.wtwd.device.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2021-09-07
 */
@ApiModel(value="TempRecord对象", description="")
public class TempRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "温度表主键id",required = false)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备id",required = true)
    private Long deviceId;

    @ApiModelProperty(value = "格式：yyyy-MM-dd",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date time;

    @ApiModelProperty(value = "平均体温",required = true)
    private Integer avgBodyTemp;

    @ApiModelProperty(value = "最小体温",required = true)
    private Integer minBodyTemp;

    @ApiModelProperty(value = "最大体温",required = true)
    private Integer maxBodyTemp;

    @ApiModelProperty(value = "平均皮肤温度",required = true)
    private Integer avgSkinTemp;

    @ApiModelProperty(value = "最小皮肤温度",required = true)
    private Integer minSkinTemp;

    @ApiModelProperty(value = "最大皮肤温度",required = true)
    private Integer maxSkinTemp;

    @ApiModelProperty(value = "每个时段温度详情",required = true)
    private List<TempInfo> listTemp;

    @ApiModelProperty(value = "最新上传时间",required = false)
    private Long uploadTime;

    private String tempInfo;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getAvgBodyTemp() {
        return avgBodyTemp;
    }

    public void setAvgBodyTemp(Integer avgBodyTemp) {
        this.avgBodyTemp = avgBodyTemp;
    }

    public Integer getMinBodyTemp() {
        return minBodyTemp;
    }

    public void setMinBodyTemp(Integer minBodyTemp) {
        this.minBodyTemp = minBodyTemp;
    }

    public Integer getMaxBodyTemp() {
        return maxBodyTemp;
    }

    public void setMaxBodyTemp(Integer maxBodyTemp) {
        this.maxBodyTemp = maxBodyTemp;
    }

    public Integer getAvgSkinTemp() {
        return avgSkinTemp;
    }

    public void setAvgSkinTemp(Integer avgSkinTemp) {
        this.avgSkinTemp = avgSkinTemp;
    }

    public Integer getMinSkinTemp() {
        return minSkinTemp;
    }

    public void setMinSkinTemp(Integer minSkinTemp) {
        this.minSkinTemp = minSkinTemp;
    }

    public Integer getMaxSkinTemp() {
        return maxSkinTemp;
    }

    public void setMaxSkinTemp(Integer maxSkinTemp) {
        this.maxSkinTemp = maxSkinTemp;
    }

    public String getTempInfo() {
        return tempInfo;
    }

    public void setTempInfo(String tempInfo) {
        this.tempInfo = tempInfo;
    }

    public Long getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Long uploadTime) {
        this.uploadTime = uploadTime;
    }

    public List<TempInfo> getListTemp() {
        return listTemp;
    }

    public void setListTemp(List<TempInfo> listTemp) {
        this.listTemp = listTemp;
    }

    @Override
    public String toString() {
        return "TempRecord{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", time=" + time +
                ", avgBodyTemp=" + avgBodyTemp +
                ", minBodyTemp=" + minBodyTemp +
                ", maxBodyTemp=" + maxBodyTemp +
                ", avgSkinTemp=" + avgSkinTemp +
                ", minSkinTemp=" + minSkinTemp +
                ", maxSkinTemp=" + maxSkinTemp +
                ", listTemp=" + listTemp +
                ", uploadTime=" + uploadTime +
                ", tempInfo='" + tempInfo + '\'' +
                '}';
    }
}
